/**
 * 
 */
package fhq.hcmute.modernshopping.adapter;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * @author: Hien Nguyen Le
 * @emai: hien.nguyenle.it@gmail.com
 * 
 */
public class Store implements Parcelable {
	private String Name;
	private String Address;
	private String Longitude;
	private String Latitude;

	public Store(String name, String address, String longtitude, String latitude) {
		super();
		this.Name = name;
		this.Address = address;
		this.Longitude = longtitude;
		this.Latitude = latitude;
	}

	public Store(Parcel parcel) {
		this.Name = parcel.readString();
		this.Address = parcel.readString();
		this.Longitude = parcel.readString();
		this.Latitude = parcel.readString();
	}

	public String getName() {
		return Name;
	}

	public String getAddress() {
		return Address;
	}

	public String getLongtitude() {
		return Longitude;
	}

	public String getLatitude() {
		return Latitude;
	}

	@Override
	public int describeContents() {
		return 0;
	}

	@Override
	public void writeToParcel(Parcel dest, int flags) {
		dest.writeString(Name);
		dest.writeString(Address);
		dest.writeString(Longitude);
		dest.writeString(Latitude);
	}

	public static Parcelable.Creator<Store> CREATOR = new Creator<Store>() {

		@Override
		public Store[] newArray(int size) {
			return new Store[size];
		}

		@Override
		public Store createFromParcel(Parcel source) {
			// TODO Auto-generated method stub
			return new Store(source);
		}
	};
}
